<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<f:subview id = "header">

	<h:form>
		
		<h:panelGrid	columns ="3"
						cellpadding = "0"
						cellspacing = "0"
						styleClass = "header"
						width = "100%">
						
			<h:panelGrid	id = "header" 
							columns = "5"
							cellpadding = "4"
							cellspacing = "0"
							border = "0">
				<h:outputText 	value = "ProjectTrack"
								styleClass = "header-header"/>
				<h:commandLink action = "inbox">
					<h:graphicImage url = "<%=path %>/images/inbox.png"
									styleClass = "header-icon"
									alt = "Inbox"/>
					<h:outputText	value = "Inbox"
									styleClass = "header-command"/>
				</h:commandLink>
				
				<h:commandLink action = "show_all">
					<h:graphicImage	url = "<%=path %>/images/show_all.png"
									styleClass = "header-icon"
									alt = "Show all projects"/>
					<h:outputText	value = "Show all"
									styleClass = "header-command"/>				
				</h:commandLink>
				
				<h:commandLink action = "create">
					<h:graphicImage	url = "<%=path %>/images/create.png"
									styleClass = "header-icon"
									alt = "Create a new project"/>
					<h:outputText	value = "Creat new"
									styleClass = "header-command"/>
				</h:commandLink>
				
				<h:commandLink action = "logout">
					<h:graphicImage	url = "<%=path %>/images/logout.png"
									styleClass = "header-icon"
									alt = "Logout"/>
					<h:outputText	value = "Logout"
									styleClass = "header-command"/>				
				</h:commandLink>
				
			</h:panelGrid>
							
			<h:panelGroup>
				<h:outputLabel	for = "languageSelect">
					<h:outputText	value = "Language:"
									styleClass = "language-select"/>									
				</h:outputLabel>
				<h:selectOneListbox	id = "languageSelect"
									size = "1"
									styleClass = "language-select">
					<f:selectItem	itemLabel = "English"
									itemValue = "English"/>
					<f:selectItem	itemLabel = "Chinese"
									itemValue = "Chinese"/>
				</h:selectOneListbox>
				<h:commandButton 	value = "GO!"
									styleClass = "language-select-button"/>			
			</h:panelGroup>
				
			<h:outputText	value = "proj_mgr"
							styleClass = "user-name"/>			
		
		</h:panelGrid>
				
	</h:form>
		
</f:subview>

